package com.eaoa.uc.customer.bo;

import com.eaoa.base.EABaseBusinessObject;
import com.eaoa.dao.pub.PubCustomerDAO;
import com.eaoa.vo.pub.PubCustomer;


public class CustomerDeleteBO extends EABaseBusinessObject{
	
	private static PubCustomerDAO customerDAO = new PubCustomerDAO();
	private Long customerno;
	
	
	public CustomerDeleteBO(Long customerno) {
		super();
		this.customerno = customerno;
	}
	protected void performBusinessLogic() {
		PubCustomer po =  (PubCustomer)customerDAO.loadAndLock(customerno);
		po.setIslock("Y");
		customerDAO.update(po);
	}
}
